<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>OpenIG: OpenIG::Base::Commands Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="openig_logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">OpenIG
   &#160;<span id="projectnumber">2.0.7</span>
   </div>
   <div id="projectbrief">cross-platform open-source OpenSceneGraph Image Generator</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>OpenIG</b></li><li class="navelem"><b>Base</b></li><li class="navelem"><a class="el" href="class_open_i_g_1_1_base_1_1_commands.html">Commands</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="class_open_i_g_1_1_base_1_1_commands-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">OpenIG::Base::Commands Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>The <a class="el" href="class_open_i_g_1_1_base_1_1_commands.html" title="The Commands singleton class. ">Commands</a> singleton class.  
 <a href="class_open_i_g_1_1_base_1_1_commands.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_commands_8h_source.html">Commands.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_open_i_g_1_1_base_1_1_commands_1_1_command.html">Command</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The <a class="el" href="class_open_i_g_1_1_base_1_1_commands_1_1_command.html" title="The Command class. ">Command</a> class.  <a href="class_open_i_g_1_1_base_1_1_commands_1_1_command.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_open_i_g_1_1_base_1_1_commands_1_1_command_exec_callback.html">CommandExecCallback</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Callback when command is executed.  <a href="struct_open_i_g_1_1_base_1_1_commands_1_1_command_exec_callback.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:afda7ad298ab843ff2ce182e564a92fb7"><td class="memItemLeft" align="right" valign="top"><a id="afda7ad298ab843ff2ce182e564a92fb7"></a>
typedef osg::ref_ptr&lt; <a class="el" href="class_open_i_g_1_1_base_1_1_commands_1_1_command.html">Command</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>CommandPtr</b></td></tr>
<tr class="separator:afda7ad298ab843ff2ce182e564a92fb7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c1f5769f88db0c91e77e0d65574f617"><td class="memItemLeft" align="right" valign="top"><a id="a6c1f5769f88db0c91e77e0d65574f617"></a>
typedef std::map&lt; std::string, osg::ref_ptr&lt; <a class="el" href="class_open_i_g_1_1_base_1_1_commands_1_1_command.html">Command</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>CommandsMap</b></td></tr>
<tr class="separator:a6c1f5769f88db0c91e77e0d65574f617"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a206615bee58f2c5e15fe5c8fa0654e2e"><td class="memItemLeft" align="right" valign="top"><a id="a206615bee58f2c5e15fe5c8fa0654e2e"></a>
typedef std::map&lt; std::string, osg::ref_ptr&lt; <a class="el" href="class_open_i_g_1_1_base_1_1_commands_1_1_command.html">Command</a> &gt; &gt;::iterator&#160;</td><td class="memItemRight" valign="bottom"><b>CommandsMapIterator</b></td></tr>
<tr class="separator:a206615bee58f2c5e15fe5c8fa0654e2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a803b11e646146ec64bd60221d88e282e"><td class="memItemLeft" align="right" valign="top"><a id="a803b11e646146ec64bd60221d88e282e"></a>
typedef std::map&lt; std::string, osg::ref_ptr&lt; <a class="el" href="class_open_i_g_1_1_base_1_1_commands_1_1_command.html">Command</a> &gt; &gt;::const_iterator&#160;</td><td class="memItemRight" valign="bottom"><b>CommandsMapConstIterator</b></td></tr>
<tr class="separator:a803b11e646146ec64bd60221d88e282e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a3061e81e9d695ae22e501949ee0e824e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_open_i_g_1_1_base_1_1_commands.html#a3061e81e9d695ae22e501949ee0e824e">setCommandExecCallback</a> (<a class="el" href="struct_open_i_g_1_1_base_1_1_commands_1_1_command_exec_callback.html">CommandExecCallback</a> *callback)</td></tr>
<tr class="memdesc:a3061e81e9d695ae22e501949ee0e824e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the Callback when command is executed.  <a href="#a3061e81e9d695ae22e501949ee0e824e">More...</a><br /></td></tr>
<tr class="separator:a3061e81e9d695ae22e501949ee0e824e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca920776bd59e329f91c455675f96125"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_open_i_g_1_1_base_1_1_commands.html#aca920776bd59e329f91c455675f96125">exec</a> (const std::string &amp;command)</td></tr>
<tr class="memdesc:aca920776bd59e329f91c455675f96125"><td class="mdescLeft">&#160;</td><td class="mdescRight">Performs execution of a command.  <a href="#aca920776bd59e329f91c455675f96125">More...</a><br /></td></tr>
<tr class="separator:aca920776bd59e329f91c455675f96125"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39cff69c354de17dbb035fee961ac363"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_open_i_g_1_1_base_1_1_commands.html#a39cff69c354de17dbb035fee961ac363">addCommand</a> (const std::string &amp;command, <a class="el" href="class_open_i_g_1_1_base_1_1_commands_1_1_command.html">Command</a> *cmd)</td></tr>
<tr class="memdesc:a39cff69c354de17dbb035fee961ac363"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a command.  <a href="#a39cff69c354de17dbb035fee961ac363">More...</a><br /></td></tr>
<tr class="separator:a39cff69c354de17dbb035fee961ac363"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaac011346d7a66db7644fba85f2a3e90"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_open_i_g_1_1_base_1_1_commands.html#aaac011346d7a66db7644fba85f2a3e90">loadScript</a> (const std::string &amp;fileName)</td></tr>
<tr class="memdesc:aaac011346d7a66db7644fba85f2a3e90"><td class="mdescLeft">&#160;</td><td class="mdescRight">Loads a text file with commands in and perform their execition.  <a href="#aaac011346d7a66db7644fba85f2a3e90">More...</a><br /></td></tr>
<tr class="separator:aaac011346d7a66db7644fba85f2a3e90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af90d6234ce89b1e084154f4bb806d20c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_open_i_g_1_1_base_1_1_commands.html#af90d6234ce89b1e084154f4bb806d20c">clear</a> ()</td></tr>
<tr class="memdesc:af90d6234ce89b1e084154f4bb806d20c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the commands map.  <a href="#af90d6234ce89b1e084154f4bb806d20c">More...</a><br /></td></tr>
<tr class="separator:af90d6234ce89b1e084154f4bb806d20c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d3993f72827e33c498ecb1b5ee86912"><td class="memItemLeft" align="right" valign="top">const CommandsMap &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_open_i_g_1_1_base_1_1_commands.html#a7d3993f72827e33c498ecb1b5ee86912">getCommands</a> () const</td></tr>
<tr class="memdesc:a7d3993f72827e33c498ecb1b5ee86912"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gives the current commands.  <a href="#a7d3993f72827e33c498ecb1b5ee86912">More...</a><br /></td></tr>
<tr class="separator:a7d3993f72827e33c498ecb1b5ee86912"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3528a7d1650be54b3d7cd1105252b400"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_open_i_g_1_1_base_1_1_commands.html#a3528a7d1650be54b3d7cd1105252b400">removeCommand</a> (const std::string &amp;command)</td></tr>
<tr class="memdesc:a3528a7d1650be54b3d7cd1105252b400"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes a command.  <a href="#a3528a7d1650be54b3d7cd1105252b400">More...</a><br /></td></tr>
<tr class="separator:a3528a7d1650be54b3d7cd1105252b400"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a1c465b03b9f5e4fa740547ba724e5888"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_open_i_g_1_1_base_1_1_commands.html">Commands</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_open_i_g_1_1_base_1_1_commands.html#a1c465b03b9f5e4fa740547ba724e5888">instance</a> ()</td></tr>
<tr class="memdesc:a1c465b03b9f5e4fa740547ba724e5888"><td class="mdescLeft">&#160;</td><td class="mdescRight">The <a class="el" href="class_open_i_g_1_1_base_1_1_commands.html" title="The Commands singleton class. ">Commands</a> singleton.  <a href="#a1c465b03b9f5e4fa740547ba724e5888">More...</a><br /></td></tr>
<tr class="separator:a1c465b03b9f5e4fa740547ba724e5888"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a27d9f774355845db64727b215676d931"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_open_i_g_1_1_base_1_1_commands.html#a27d9f774355845db64727b215676d931">Commands</a> ()</td></tr>
<tr class="memdesc:a27d9f774355845db64727b215676d931"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="#a27d9f774355845db64727b215676d931">More...</a><br /></td></tr>
<tr class="separator:a27d9f774355845db64727b215676d931"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae46c6ba21e1023fb375f686bccffb501"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_open_i_g_1_1_base_1_1_commands.html#ae46c6ba21e1023fb375f686bccffb501">~Commands</a> ()</td></tr>
<tr class="memdesc:ae46c6ba21e1023fb375f686bccffb501"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#ae46c6ba21e1023fb375f686bccffb501">More...</a><br /></td></tr>
<tr class="separator:ae46c6ba21e1023fb375f686bccffb501"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a8297a7861178aed592e6cdc36e488df3"><td class="memItemLeft" align="right" valign="top"><a id="a8297a7861178aed592e6cdc36e488df3"></a>
CommandsMap&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_open_i_g_1_1_base_1_1_commands.html#a8297a7861178aed592e6cdc36e488df3">_commands</a></td></tr>
<tr class="memdesc:a8297a7861178aed592e6cdc36e488df3"><td class="mdescLeft">&#160;</td><td class="mdescRight">name based std::map of commands added <br /></td></tr>
<tr class="separator:a8297a7861178aed592e6cdc36e488df3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69bf0f5716bfb3b284691e07943d761b"><td class="memItemLeft" align="right" valign="top"><a id="a69bf0f5716bfb3b284691e07943d761b"></a>
osg::ref_ptr&lt; <a class="el" href="struct_open_i_g_1_1_base_1_1_commands_1_1_command_exec_callback.html">CommandExecCallback</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_open_i_g_1_1_base_1_1_commands.html#a69bf0f5716bfb3b284691e07943d761b">_commandExecCallback</a></td></tr>
<tr class="memdesc:a69bf0f5716bfb3b284691e07943d761b"><td class="mdescLeft">&#160;</td><td class="mdescRight">The command exec callback, executed when a command is executed. <br /></td></tr>
<tr class="separator:a69bf0f5716bfb3b284691e07943d761b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The <a class="el" href="class_open_i_g_1_1_base_1_1_commands.html" title="The Commands singleton class. ">Commands</a> singleton class. </p>
<p>This singleton gives the user ability to run commands. </p><dl class="section author"><dt>Author</dt><dd>Trajce Nikolov Nick <a href="#" onclick="location.href='mai'+'lto:'+'ope'+'ni'+'g@c'+'om'+'pro'+'.n'+'et'; return false;">openi<span style="display: none;">.nosp@m.</span>g@co<span style="display: none;">.nosp@m.</span>mpro.<span style="display: none;">.nosp@m.</span>net</a> </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>(c)Compro Computer Services, Inc. </dd></dl>
<dl class="section date"><dt>Date</dt><dd>Sun Jan 11 2015 </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a27d9f774355845db64727b215676d931"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a27d9f774355845db64727b215676d931">&#9670;&nbsp;</a></span>Commands()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">OpenIG::Base::Commands::Commands </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Constructor. </p>
<dl class="section author"><dt>Author</dt><dd>Trajce Nikolov Nick <a href="#" onclick="location.href='mai'+'lto:'+'ope'+'ni'+'g@c'+'om'+'pro'+'.n'+'et'; return false;">openi<span style="display: none;">.nosp@m.</span>g@co<span style="display: none;">.nosp@m.</span>mpro.<span style="display: none;">.nosp@m.</span>net</a> </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>(c)Compro Computer Services, Inc. </dd></dl>
<dl class="section date"><dt>Date</dt><dd>Sun Jan 11 2015 </dd></dl>

</div>
</div>
<a id="ae46c6ba21e1023fb375f686bccffb501"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae46c6ba21e1023fb375f686bccffb501">&#9670;&nbsp;</a></span>~Commands()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">OpenIG::Base::Commands::~Commands </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Destructor. </p>
<dl class="section author"><dt>Author</dt><dd>Trajce Nikolov Nick <a href="#" onclick="location.href='mai'+'lto:'+'ope'+'ni'+'g@c'+'om'+'pro'+'.n'+'et'; return false;">openi<span style="display: none;">.nosp@m.</span>g@co<span style="display: none;">.nosp@m.</span>mpro.<span style="display: none;">.nosp@m.</span>net</a> </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>(c)Compro Computer Services, Inc. </dd></dl>
<dl class="section date"><dt>Date</dt><dd>Sun Jan 11 2015 </dd></dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a39cff69c354de17dbb035fee961ac363"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a39cff69c354de17dbb035fee961ac363">&#9670;&nbsp;</a></span>addCommand()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void OpenIG::Base::Commands::addCommand </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>command</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_open_i_g_1_1_base_1_1_commands_1_1_command.html">Command</a> *&#160;</td>
          <td class="paramname"><em>cmd</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Add a command. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">command</td><td>The name of the command. You use it to invoke the command </td></tr>
    <tr><td class="paramname">cmd</td><td>Instance of a command </td></tr>
  </table>
  </dd>
</dl>
<dl class="section author"><dt>Author</dt><dd>Trajce Nikolov Nick <a href="#" onclick="location.href='mai'+'lto:'+'ope'+'ni'+'g@c'+'om'+'pro'+'.n'+'et'; return false;">openi<span style="display: none;">.nosp@m.</span>g@co<span style="display: none;">.nosp@m.</span>mpro.<span style="display: none;">.nosp@m.</span>net</a> </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>(c)Compro Computer Services, Inc. </dd></dl>
<dl class="section date"><dt>Date</dt><dd>Sun Jan 11 2015 </dd></dl>

</div>
</div>
<a id="af90d6234ce89b1e084154f4bb806d20c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af90d6234ce89b1e084154f4bb806d20c">&#9670;&nbsp;</a></span>clear()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void OpenIG::Base::Commands::clear </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears the commands map. </p>
<dl class="section author"><dt>Author</dt><dd>Trajce Nikolov Nick <a href="#" onclick="location.href='mai'+'lto:'+'ope'+'ni'+'g@c'+'om'+'pro'+'.n'+'et'; return false;">openi<span style="display: none;">.nosp@m.</span>g@co<span style="display: none;">.nosp@m.</span>mpro.<span style="display: none;">.nosp@m.</span>net</a> </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>(c)Compro Computer Services, Inc. </dd></dl>
<dl class="section date"><dt>Date</dt><dd>Sun Jan 11 2015 </dd></dl>

</div>
</div>
<a id="aca920776bd59e329f91c455675f96125"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca920776bd59e329f91c455675f96125">&#9670;&nbsp;</a></span>exec()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int OpenIG::Base::Commands::exec </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>command</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Performs execution of a command. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">command</td><td>The command with its arguments </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>see <a class="el" href="class_open_i_g_1_1_base_1_1_commands_1_1_command.html#acbec1bdb9bdc7c71a8ca1310d6fa1763">Command::exec</a> </dd></dl>
<dl class="section author"><dt>Author</dt><dd>Trajce Nikolov Nick <a href="#" onclick="location.href='mai'+'lto:'+'ope'+'ni'+'g@c'+'om'+'pro'+'.n'+'et'; return false;">openi<span style="display: none;">.nosp@m.</span>g@co<span style="display: none;">.nosp@m.</span>mpro.<span style="display: none;">.nosp@m.</span>net</a> </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>(c)Compro Computer Services, Inc. </dd></dl>
<dl class="section date"><dt>Date</dt><dd>Sun Jan 11 2015 </dd></dl>

</div>
</div>
<a id="a7d3993f72827e33c498ecb1b5ee86912"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d3993f72827e33c498ecb1b5ee86912">&#9670;&nbsp;</a></span>getCommands()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const CommandsMap&amp; OpenIG::Base::Commands::getCommands </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Gives the current commands. </p>
<dl class="section return"><dt>Returns</dt><dd>Gives the current commands map </dd></dl>
<dl class="section author"><dt>Author</dt><dd>Trajce Nikolov Nick <a href="#" onclick="location.href='mai'+'lto:'+'ope'+'ni'+'g@c'+'om'+'pro'+'.n'+'et'; return false;">openi<span style="display: none;">.nosp@m.</span>g@co<span style="display: none;">.nosp@m.</span>mpro.<span style="display: none;">.nosp@m.</span>net</a> </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>(c)Compro Computer Services, Inc. </dd></dl>
<dl class="section date"><dt>Date</dt><dd>Sun Jan 11 2015 </dd></dl>

</div>
</div>
<a id="a1c465b03b9f5e4fa740547ba724e5888"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1c465b03b9f5e4fa740547ba724e5888">&#9670;&nbsp;</a></span>instance()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_open_i_g_1_1_base_1_1_commands.html">Commands</a>* OpenIG::Base::Commands::instance </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The <a class="el" href="class_open_i_g_1_1_base_1_1_commands.html" title="The Commands singleton class. ">Commands</a> singleton. </p>
<dl class="section return"><dt>Returns</dt><dd>The <a class="el" href="class_open_i_g_1_1_base_1_1_commands.html" title="The Commands singleton class. ">Commands</a> singleton </dd></dl>
<dl class="section author"><dt>Author</dt><dd>Trajce Nikolov Nick <a href="#" onclick="location.href='mai'+'lto:'+'ope'+'ni'+'g@c'+'om'+'pro'+'.n'+'et'; return false;">openi<span style="display: none;">.nosp@m.</span>g@co<span style="display: none;">.nosp@m.</span>mpro.<span style="display: none;">.nosp@m.</span>net</a> </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>(c)Compro Computer Services, Inc. </dd></dl>
<dl class="section date"><dt>Date</dt><dd>Sun Jan 11 2015 </dd></dl>

</div>
</div>
<a id="aaac011346d7a66db7644fba85f2a3e90"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaac011346d7a66db7644fba85f2a3e90">&#9670;&nbsp;</a></span>loadScript()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void OpenIG::Base::Commands::loadScript </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>fileName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Loads a text file with commands in and perform their execition. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fileName</td><td>The file name of the script </td></tr>
  </table>
  </dd>
</dl>
<dl class="section author"><dt>Author</dt><dd>Trajce Nikolov Nick <a href="#" onclick="location.href='mai'+'lto:'+'ope'+'ni'+'g@c'+'om'+'pro'+'.n'+'et'; return false;">openi<span style="display: none;">.nosp@m.</span>g@co<span style="display: none;">.nosp@m.</span>mpro.<span style="display: none;">.nosp@m.</span>net</a> </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>(c)Compro Computer Services, Inc. </dd></dl>
<dl class="section date"><dt>Date</dt><dd>Sun Jan 11 2015 </dd></dl>

</div>
</div>
<a id="a3528a7d1650be54b3d7cd1105252b400"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3528a7d1650be54b3d7cd1105252b400">&#9670;&nbsp;</a></span>removeCommand()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void OpenIG::Base::Commands::removeCommand </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>command</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Removes a command. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">command</td><td>The name of the command to be removed </td></tr>
  </table>
  </dd>
</dl>
<dl class="section author"><dt>Author</dt><dd>Trajce Nikolov Nick <a href="#" onclick="location.href='mai'+'lto:'+'ope'+'ni'+'g@c'+'om'+'pro'+'.n'+'et'; return false;">openi<span style="display: none;">.nosp@m.</span>g@co<span style="display: none;">.nosp@m.</span>mpro.<span style="display: none;">.nosp@m.</span>net</a> </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>(c)Compro Computer Services, Inc. </dd></dl>
<dl class="section date"><dt>Date</dt><dd>Sun Oct 18 2015 </dd></dl>

</div>
</div>
<a id="a3061e81e9d695ae22e501949ee0e824e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3061e81e9d695ae22e501949ee0e824e">&#9670;&nbsp;</a></span>setCommandExecCallback()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void OpenIG::Base::Commands::setCommandExecCallback </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_open_i_g_1_1_base_1_1_commands_1_1_command_exec_callback.html">CommandExecCallback</a> *&#160;</td>
          <td class="paramname"><em>callback</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the Callback when command is executed. </p>
<dl class="section author"><dt>Author</dt><dd>Trajce Nikolov Nick <a href="#" onclick="location.href='mai'+'lto:'+'ope'+'ni'+'g@c'+'om'+'pro'+'.n'+'et'; return false;">openi<span style="display: none;">.nosp@m.</span>g@co<span style="display: none;">.nosp@m.</span>mpro.<span style="display: none;">.nosp@m.</span>net</a> </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>(c)Compro Computer Services, Inc. </dd></dl>
<dl class="section date"><dt>Date</dt><dd>Fri Jun 17 2016 </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>Core-Base/<a class="el" href="_commands_8h_source.html">Commands.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed May 16 2018 15:41:11 for OpenIG by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
